Skip to main content

Cookie management API exposed on window.glue42gd.cookies

4 Methods

copy()⚓︎

(options: CopyCookiesOptions) => Promise<void>

Copies the cookies for the specified domains, including HttpOnly ones, from one session to another. Overwrites the values of any matching cookies with the same name, domain, and path in the target destination regardless of which value is newer.

io.Connect Desktop 10.5@interopio/6.23.0

Parameters (1)

Name Type Required Description
options⚓︎ CopyCookiesOptions

Options for copying cookies from one session to another.

get()⚓︎

(filter: CookiesGetFilter) => Promise<Cookie[]>

Get cookies by filter

Parameters (1)

Name Type Required Description
filter⚓︎ CookiesGetFilter x

remove()⚓︎

(url: string, name: string) => Promise<void>

Remove a cookie by URL and name

Parameters (2)

Name Type Required Description
url⚓︎ string x
name⚓︎ string x

set()⚓︎

(cookie: CookiesSetDetails) => Promise<void>

Set a cookie

Parameters (1)

Name Type Required Description